package cn.ffcs.unm.organization.manager.impl;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import cn.ffcs.unm.organization.dao.OrgNmgAnizationDao;
import cn.ffcs.unm.organization.manager.OrgNmgAnizationManager;
import cn.ffcs.unm.organization.model.Department;
import cn.ffcs.unm.organization.model.OrgRelationship;
import cn.ffcs.unm.organization.model.OrganizationHR;
import cn.ffcs.uom.common.vo.PageInfo;

@Service("orgNmgAnizationManager")
@Scope("prototype")
public class OrgNmgAnizationManagerImpl implements OrgNmgAnizationManager {

	@Resource
	private OrgNmgAnizationDao orgNmgAnizationDao;

	@Override
	public PageInfo queryPageInfoByOrgRelationship(
			OrgRelationship orgRelationship, int currentPage, int pageSize) {
		return orgNmgAnizationDao.queryPageInfoByOrgRelationship(
				orgRelationship, currentPage, pageSize);
	}

	@Override
	public PageInfo queryPageInfoByDepartment(Department department,
			int currentPage, int pageSize) {
		return orgNmgAnizationDao.queryPageInfoByDepartment(department,
				currentPage, pageSize);
	}

	@Override
	public PageInfo queryPageInfoByOrganizationHR(OrganizationHR organizationHR, int currentPage, int pageSize) {
		return orgNmgAnizationDao.queryPageInfoByOrganizationHR(organizationHR, currentPage, pageSize);
	}

}
